ExtensionAction

public interface ExtensionAction implements Observable<T>

An extension action.

The extension action represents an icon in the toolbar near the address bar in Chromium. JxBrowser does not display Chromium toolbar, but you can access the extension action icon, tooltip, badge, and other properties to display a clickable extension icon in your application. You can also interact with the extension action programmatically by simulating a click on it.

The extension action properties can change over time. To receive notifications about the changes, subscribe to receive the ExtensionActionUpdated events.

Since

8.0.0

Functions

Link copied to clipboard
public abstract String badge()
Returns the badge that is layered over the extension action icon.
Link copied to clipboard
public abstract void click()
Simulates a click on the extension action icon.
Link copied to clipboard
public abstract Extension extension()
Returns the extension that owns this action.
Link copied to clipboard
public abstract Bitmap icon()
Returns the icon of this extension action.
Link copied to clipboard
public abstract boolean isEnabled()
Returns true when this action is enabled.
Link copied to clipboard
public abstract Subscription on<E extends T>(Class<E> eventClass, Observer<E> observer)
Subscribes the given event observer to receive the events of the given eventClass.
Link copied to clipboard
public final Subscription subscribe<E extends Event>(Observer<E> observer)
public final Subscription subscribe<E extends Event>(Observer<E> observer)

Subscribes the given observer to receive events of type E from this Observable.

Link copied to clipboard
public abstract String tooltip()
Returns the tooltip of this extension action.
Link copied to clipboard
public abstract ExtensionActionType type()
Returns the type of this extension action.